package zhoufu.sz.sanxiao_check.models;

import android.os.Parcel;
import android.os.Parcelable;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

@Root(name = "update")
public class ApkInfo implements Parcelable {
    @Element(name = "androidversion")
     float version;

    @Element(name = "updatedate")
     String updatedate;


    @Element(name = "version")
     String lastVersion;

    @Element(name = "size")
     String size;

    //@Element(name = "appbyte")
     int appbyte;

    @Element(name = "androidcontent")
     String androidcontent;

    @Element(name = "androidurl")
     String androidurl;


    public ApkInfo() {
    }

    protected ApkInfo(Parcel in) {
        version = in.readFloat();
        updatedate = in.readString();
        lastVersion = in.readString();
        size = in.readString();
        appbyte = in.readInt();
        androidcontent = in.readString();
        androidurl = in.readString();
    }

    public static final Creator<ApkInfo> CREATOR = new Creator<ApkInfo>() {
        @Override
        public ApkInfo createFromParcel(Parcel in) {
            return new ApkInfo(in);
        }

        @Override
        public ApkInfo[] newArray(int size) {
            return new ApkInfo[size];
        }
    };

    public float getVersion() {
        return version;
    }

    public void setVersion(long version) {
        this.version = version;
    }

    public String getUpdatedate() {
        return updatedate;
    }

    public void setUpdatedate(String updatedate) {
        this.updatedate = updatedate;
    }

    public String getLastVersion() {
        return lastVersion;
    }

    public void setLastVersion(String lastVersion) {
        this.lastVersion = lastVersion;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public int getAppbyte() {
        return appbyte;
    }

    public void setAppbyte(int appbyte) {
        this.appbyte = appbyte;
    }

    public String getAndroidcontent() {
        return androidcontent;
    }

    public void setAndroidcontent(String androidcontent) {
        this.androidcontent = androidcontent;
    }

    public String getAndroidurl() {
        return androidurl;
    }

    public void setAndroidurl(String androidurl) {
        this.androidurl = androidurl;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeFloat(version);
        dest.writeString(updatedate);
        dest.writeString(lastVersion);
        dest.writeString(size);
        dest.writeInt(appbyte);
        dest.writeString(androidcontent);
        dest.writeString(androidurl);
    }
}